//
//  CachedImage.h
//  DialectShare
//
//  Created by timmy zhong on 3/20/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CachedImage : UIView <NSURLConnectionDelegate, NSURLConnectionDataDelegate> {
    
    NSMutableData *_imageData;
}
@property (nonatomic, retain) NSString *url;

- (id)initWithFrame:(CGRect)frame target:(id)target selector:(SEL)sel;

- (void)showImageForUrl:(NSString *)url defaultImage:(NSString *)path;

@end
